using System;
using System.Collections;
using System.Windows.Forms;
using CUtil;

namespace CStock
{
	/// <summary>
	/// Summary description for ICapitalReSourcesData.
	/// </summary>
	public interface IProgramContext : IStockObjectBase
	{
        bool SetNewPath_ID(string myPath, string id);
        bool OpenLastSaved();
        bool Open_FromExcelFile(string excelFileName);
        bool WriteEconomyInExcel(string excelFileName);

        bool ProgramContext_OpenConfigurationFile();
        bool GetProgramConfigurationFromDirectory();
        bool ProgramContext_OpenOrCreate(string myWorkingDir, bool create);
        bool Save();
        
        bool DoMenuOpenExcelFile();

        bool IsInitialized { get;}
        bool GetEconomyFromExcelFile(string excelFileName);
        bool ReadWriteExcel_Simulations(string excelFileName);

		#region properties
        ITradeEconomy TradeEconomy { get;set;}
        IErrorDialog ErrorDialog{ get; }

        ITrader Trader_Simulation{ get;set;}


        System.Windows.Forms.HelpProvider HelpProvider{ get;}
        string Helpfile { get;}
        IIndicatorComposed IndicatorComposed {get;set;		}
       IConfiguration Configuration {get;set;		}
		CUtil.LogFile Logfile{get;}


        IDataClass DataClassToAddInChartWindow{ get; set; }

		#endregion

		void SetHelpProvider();
        void GetOrCreateConfiguration(bool forceNew);
		bool ProgramContext_Init(bool forceNewConfig);
		



       


	}

}
